// import axios from '/static/js/axios.js'
// import QS from 'qs'
// import base from './base'

export function saveSolutionType(data) {
    return axios({
        url: `/solution/type`,
        method: 'post',
        data: JSON.stringify(data),
    })
}

export function getSolutionTypeList() {
    return axios({
        url: `/solution/type/all`,
        method: 'get'
    })
}
export function delSolutionType(id) {
    return axios({
        url: `/solution/type/` + id,
        method: 'delete'
    })
}
export function saveSolution(data) {
    return axios({
        url: `/solution`,
        method: 'post',
        data: JSON.stringify(data),
    })
}

export function getSolutionList() {
    return axios({
        url: `/solution/all`,
        method: 'get'
    })
}
export function getSolutionInfoList() {
    return axios({
        url: `/solution/info/all`,
        method: 'get'
    })
}
export function delSolution(id) {
    return axios({
        url: `/solution/` + id,
        method: 'delete'
    })
}


